package de.jmda.mview.typeshape.relation;

import java.awt.Component;

import de.jmda.mview.typeshape.TypeShape;
import de.jmda.util.gui.awt.graphics.RelationEndpoint.Style;

public class RelationIsA
    extends Relation
{
	private TypeShape<?> typeShapeSub;
	private TypeShape<?> typeShapeSuper;

	/**
	 * @param typeShapeSub
	 * @param typeShapeSuper
	 * @param component
	 */
	public RelationIsA(
			TypeShape<?> typeShapeSub,
			TypeShape<?> typeShapeSuper,
			Component component)
  {
	  super(typeShapeSub, typeShapeSuper, component);

	  this.typeShapeSub = typeShapeSub;
	  this.typeShapeSuper = typeShapeSuper;
  }

	@Override
  public Style getStyleSource()
  {
	  return Style.NONE;
  }

	@Override
  public Style getStyleTarget()
  {
	  return Style.TRANSPARENT;
  }
}